package cn.kgc.tcst004.pojo;

import org.springframework.format.annotation.DateTimeFormat;

public class Blog {
    private String id;
    private String content;
    @DateTimeFormat(pattern = "YYYY-MM-dd")
    private String publishtime;
    private String userid;
    private Users users;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPublishtime() {
        return publishtime;
    }

    public void setPublishtime(String publishtime) {
        this.publishtime = publishtime;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id='" + id + '\'' +
                ", content='" + content + '\'' +
                ", publishtime='" + publishtime + '\'' +
                ", userid='" + userid + '\'' +
                ", users=" + users +
                '}';
    }

    public Blog(String id, String content, String publishtime, String userid, Users users) {
        this.id = id;
        this.content = content;
        this.publishtime = publishtime;
        this.userid = userid;
        this.users = users;
    }

    public Blog() {

    }


}
